

from flask import render_template, Blueprint

# 创建蓝图对象
html_blueprint = Blueprint('views_html', __name__, )


# 登录页
@html_blueprint.route("/")
def login():
    return render_template("pages/login.html")


@html_blueprint.route("/register")
def register():
    return render_template("pages/register.html")


# 主页
@html_blueprint.route("/home")
def home():
    return render_template("index.html")
@html_blueprint.route("/console1")
def console1():
    return render_template("pages/console1.html")


@html_blueprint.route("/q")
def console4():
    return render_template("ndvi_plots.html")

@html_blueprint.route("/yield_time_plot")
def console2():
    return render_template("yield_time_plot.html")

@html_blueprint.route("/feature_plots")
def console3():
    return render_template("feature_plots.html")



